<?php
class TestHeaderMessage extends NestedMessage
{
    public function Render()
    {
		$header = $this->header ? "<b>$this->header</b> -" : null;
    	if ($this->IsPassed())
    	{
    		$this->status = 'confirm';
    		$passed = "<b>$this->passedCount passed</b>";
		}
    	else
    	{
    		$this->status = 'warning';
    		$passed = "<b>$this->failedCount failed, $this->passedCount passed</b>";
		}

		$this->content = $this->RenderChilds();
		$flash['status'] = $this->status;
		$flash['msg'] = $this->content;
		$flash['header'] = "$header $passed";
		return $flash;
    }
}
?>
